package com.cash.channel.svc.service.api;

import com.cash.channel.svc.util.ServiceUtils;
import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.DataModel;
import com.cash.channel.api.service.BaseApi;
import com.cash.channel.svc.service.base.RepaySubmit;
import org.springframework.stereotype.Service;

@Service("repaySubmit")
public class CJH000010 implements BaseApi<DataModel> {

    @Override
    public ApiResponseModel doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        RepaySubmit repaySubmit = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.普通还款, RepaySubmit.class);
        return repaySubmit.doRepaySubmit(apiRequestModel);
    }

}
